/*
 * @Author: scopesang
 * @Date: 2022-05-10 10:04:29
 * @LastEditors: scopesang
 * @LastEditTime: 2022-05-10 10:08:31
 * @FilePath: \TypeScript\src\typeInference.ts
 * @Description: 类型推断（掌握）
 * 
 * Copyright (c) 2022 by scopesang/大鹏科技, All Rights Reserved. 
 */
// 类型推断  inference
// 如果每个数组项都是不同的值 
let arr:(string|number|boolean)[] = ['张胜男']